import java.io.*;

public class potions {

	public void buryItem(int item, int slot, int ID) {
		boolean used = true;
		client c = (client) server.playerHandler.players[ID];
		if (item != c.playerItems[slot] - 1){
			return;
		}
		if (c.playerHasItem(item)) {
			switch (item) {
			case 5509:
				c.fillSmallPouch();
				break;
			case 5510:
				c.fillMediumPouch();
				break;
			case 5512:
				c.fillLargePouch();
				break;
			case 5514:
				c.fillGiantPouch();
				break;
			case 739:
				c.sM("I wouldn't want to drink this!");
				break;
			case 4049:
				if (System.currentTimeMillis() - c.foodDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();	
				c.currentHealth += 10;
				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
					c.currentHealth = c.playerLevel[c.playerHitpoints];
				c.sendQuest("" + c.currentHealth + "", 4016);
				c.deleteItem(4049, slot, 1);
				break;
			case 526:
				if (System.currentTimeMillis() - c.foodDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.prayerMessage(20,526);
				break;
			case 532:
				if (System.currentTimeMillis() - c.foodDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.prayerMessage(40,532);
				break;
			case 536:
				if (System.currentTimeMillis() - c.foodDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.prayerMessage(80,536);
				break;
			case 1961:
				if (System.currentTimeMillis() - c.foodDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				//c.playSound(317, 000, 020);
				c.sM("You eat the easter egg.");
				if(c.currentHealth < c.playerLevel[c.playerHitpoints]){
				c.sM("It heals some health.");
				}
				c.deleteItem(1961, slot, 1);
				c.currentHealth += 22;
				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
					c.currentHealth = c.playerLevel[c.playerHitpoints];
				c.sendQuest("" + c.currentHealth + "", 4016);
				break;
			case 315:
				if (System.currentTimeMillis() - c.foodDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				//c.playSound(317, 000, 020);
				c.sM("You eat the shrimps.");
				if(c.currentHealth < c.playerLevel[c.playerHitpoints]){
				c.sM("It heals some health.");
				}
				c.deleteItem(315, slot, 1);
				c.currentHealth += 5;
				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
					c.currentHealth = c.playerLevel[c.playerHitpoints];
				c.sendQuest("" + c.currentHealth + "", 4016);
				break;
			case 379:
				if (System.currentTimeMillis() - c.foodDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				//c.playSound(317, 000, 020);
				c.sM("You eat the lobster.");
				if(c.currentHealth < c.playerLevel[c.playerHitpoints]){
				c.sM("It heals some health.");
				}
				c.deleteItem(379, slot, 1);
				c.currentHealth += 12;
				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
					c.currentHealth = c.playerLevel[c.playerHitpoints];
				c.sendQuest("" + c.currentHealth + "", 4016);
				break;
			case 385:
				if (System.currentTimeMillis() - c.foodDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				//c.playSound(317, 000, 020);
				c.sM("You eat the shark.");
				if(c.currentHealth < c.playerLevel[c.playerHitpoints]){
				c.sM("It heals some health.");
				}
				c.deleteItem(385, slot, 1);
				c.currentHealth += 20;
				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
					c.currentHealth = c.playerLevel[c.playerHitpoints];
				c.sendQuest("" + c.currentHealth + "", 4016);
				break;
			case 397:
				c.sM("Please buy sharks from the pk shop");
				break;
			case 391:
				if (System.currentTimeMillis() - c.foodDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				//c.playSound(317, 000, 020);
				c.sM("You eat the manta ray.");
				if(c.currentHealth < c.playerLevel[c.playerHitpoints]){
				c.sM("It heals some health.");
				}
				c.deleteItem(391, slot, 1);
				
				c.currentHealth += 22;
				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
					c.currentHealth = c.playerLevel[c.playerHitpoints];
				c.sendQuest("" + c.currentHealth + "", 4016);
				break;
			case 3040:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the magic potion.");
				c.sM("You have 3 doses of potion left.");
c.deleteItem(3040, slot, 1);
c.addItem(3042, 1);
c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]) + 4;
c.sendQuest("" + c.playerLevel[6] + "", 4014);
c.magePotTimer = 60;
				if (c.playerLevel[6] > c.playerLevel[c.playerMagic])
					c.playerLevel[6] = c.playerLevel[6] += 4;
				c.sendQuest("" + c.playerLevel[6] + "", 4014);
break;
			case 3042:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the magic potion.");
				c.sM("You have 2 doses of potion left.");
c.deleteItem(3042, slot, 1);
c.addItem(3044, 1);
c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]) + 4;
c.sendQuest("" + c.playerLevel[6] + "", 4014);
c.magePotTimer = 60;
				if (c.playerLevel[6] > c.playerLevel[c.playerMagic])
					c.playerLevel[6] = c.playerLevel[6] += 4;
				c.sendQuest("" + c.playerLevel[6] + "", 4014);
break;
			case 3044:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the magic potion.");
				c.sM("You have 1 dose of potion left.");
c.deleteItem(3044, slot, 1);
c.addItem(3046, 1);
c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]) + 4;
c.sendQuest("" + c.playerLevel[6] + "", 4014);
c.magePotTimer = 60;
				if (c.playerLevel[6] > c.playerLevel[c.playerMagic])
					c.playerLevel[6] = c.playerLevel[6] += 4;
				c.sendQuest("" + c.playerLevel[6] + "", 4014);
break;
			case 3046:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the magic potion.");
				c.sM("You have finished your potion.");
c.deleteItem(3046, slot, 1);
c.addItem(229, 1);
c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]) + 4;
c.sendQuest("" + c.playerLevel[6] + "", 4014);
c.magePotTimer = 60;
				if (c.playerLevel[6] > c.playerLevel[c.playerMagic])
					c.playerLevel[6] = c.playerLevel[6] += 4;
				c.sendQuest("" + c.playerLevel[6] + "", 4014);
break;
			case 2446:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the antipoison potion.");
				c.sM("You have 3 doses of potion left.");
c.deleteItem(2446, slot, 1);
c.addItem(175, 1);
c.poisoned = false;
c.poisonDmg = false;
break;
			case 175:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the antipoison potion.");
				c.sM("You have 2 doses of potion left.");
c.deleteItem(175, slot, 1);
c.addItem(177, 1);
c.poisoned = false;
c.poisonDmg = false;
break;
			case 177:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the antipoison potion.");
				c.sM("You have 1 dose of potion left.");
c.deleteItem(177, slot, 1);
c.addItem(179, 1);
c.poisoned = false;
c.poisonDmg = false;
break;
			case 179:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the antipoison potion.");
				c.sM("You have finished your potion.");
c.deleteItem(179, slot, 1);
c.addItem(229, 1);
c.poisoned = false;
c.poisonDmg = false;
break;
			case 3024:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the restore potion.");
				c.sM("You have 3 doses of the potion left.");
if (c.playerLevel[0] < c.getLevelForXP(c.playerXP[0])){
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
}
if (c.playerLevel[1] < c.getLevelForXP(c.playerXP[1])){
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
}
if (c.playerLevel[2] < c.getLevelForXP(c.playerXP[2])){
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
}
if (c.playerLevel[3] < c.getLevelForXP(c.playerXP[3])){
c.playerLevel[3] = c.getLevelForXP(c.playerXP[3]);
}
if (c.playerLevel[4] < c.getLevelForXP(c.playerXP[4])){
c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
}
if (c.playerLevel[6] < c.getLevelForXP(c.playerXP[6])){
c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]);
}
c.prayerRestore();
c.deleteItem(3024, slot, 1);
c.addItem(3026, 1);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.sendQuest("" + c.playerLevel[1] + "", 4008);
c.sendQuest("" + c.playerLevel[4] + "", 4010);
break;
			case 3026:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the restore potion.");
				c.sM("You have 2 doses of the potion left.");
if (c.playerLevel[0] < c.getLevelForXP(c.playerXP[0])){
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
}
if (c.playerLevel[1] < c.getLevelForXP(c.playerXP[1])){
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
}
if (c.playerLevel[2] < c.getLevelForXP(c.playerXP[2])){
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
}
if (c.playerLevel[3] < c.getLevelForXP(c.playerXP[3])){
c.playerLevel[3] = c.getLevelForXP(c.playerXP[3]);
}
if (c.playerLevel[4] < c.getLevelForXP(c.playerXP[4])){
c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
}
if (c.playerLevel[6] < c.getLevelForXP(c.playerXP[6])){
c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]);
}
c.prayerRestore();
c.deleteItem(3026, slot, 1);
c.addItem(3028, 1);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.sendQuest("" + c.playerLevel[1] + "", 4008);
c.sendQuest("" + c.playerLevel[4] + "", 4010);
break;
			case 3028:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the restore potion.");
				c.sM("You have 1 dose of the potion left.");
if (c.playerLevel[0] < c.getLevelForXP(c.playerXP[0])){
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
}
if (c.playerLevel[1] < c.getLevelForXP(c.playerXP[1])){
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
}
if (c.playerLevel[2] < c.getLevelForXP(c.playerXP[2])){
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
}
if (c.playerLevel[3] < c.getLevelForXP(c.playerXP[3])){
c.playerLevel[3] = c.getLevelForXP(c.playerXP[3]);
}
if (c.playerLevel[4] < c.getLevelForXP(c.playerXP[4])){
c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
}
if (c.playerLevel[6] < c.getLevelForXP(c.playerXP[6])){
c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]);
}
c.prayerRestore();
c.deleteItem(3028, slot, 1);
c.addItem(3030, 1);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.sendQuest("" + c.playerLevel[1] + "", 4008);
c.sendQuest("" + c.playerLevel[4] + "", 4010);
break;
			case 3030:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of the restore potion.");
				c.sM("You have finished your potion.");
if (c.playerLevel[0] < c.getLevelForXP(c.playerXP[0])){
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
}
if (c.playerLevel[1] < c.getLevelForXP(c.playerXP[1])){
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
}
if (c.playerLevel[2] < c.getLevelForXP(c.playerXP[2])){
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
}
if (c.playerLevel[3] < c.getLevelForXP(c.playerXP[3])){
c.playerLevel[3] = c.getLevelForXP(c.playerXP[3]);
}
if (c.playerLevel[4] < c.getLevelForXP(c.playerXP[4])){
c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
}
if (c.playerLevel[6] < c.getLevelForXP(c.playerXP[6])){
c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]);
}
c.prayerRestore();
c.deleteItem(3030, slot, 1);
c.addItem(229, 1);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[5] + "", 4012);
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.sendQuest("" + c.playerLevel[1] + "", 4008);
c.sendQuest("" + c.playerLevel[4] + "", 4010);
break;
			case 6685:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();


if(c.playerLevel[0] >= 10 && c.playerLevel[1] >= 10 && c.playerLevel[2] >= 10 && c.playerLevel[3] >= 10 && c.playerLevel[4] >= 10 && c.playerLevel[5] >= 10){
c.setAnimation(0x33D);
c.sM("You drink some of the foul liquid.");
c.sM("You have 3 doses of potion left.");
c.deleteItem(6685, slot, 1);
c.addItem(6687, 1);
c.currentHealth += 16;
c.playerLevel[0] -= 5;
c.playerLevel[1] -= 5;
c.playerLevel[2] -= 5;
c.playerLevel[4] -= 5;
c.playerLevel[6] -= 5;
} else {
c.sM("You Are to weak to do this.");

}
				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
					c.currentHealth = c.playerLevel[c.playerHitpoints];
c.sendQuest("" + c.currentHealth + "", 4016);
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.sendQuest("" + c.playerLevel[1] + "", 4008);
c.sendQuest("" + c.playerLevel[4] + "", 4010);
c.sendQuest("" + c.playerLevel[0] + "", 4004);
c.sendQuest("" + c.playerLevel[6] + "", 4014);
break;
			case 6687:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();


if(c.playerLevel[0] >= 10 && c.playerLevel[1] >= 10 && c.playerLevel[2] >= 10 && c.playerLevel[3] >= 10 && c.playerLevel[4] >= 10 && c.playerLevel[5] >= 10){
c.setAnimation(0x33D);				
c.sM("You drink some of the foul liquid.");
c.sM("You have 2 doses of potion left.");
c.deleteItem(6687, slot, 1);
c.addItem(6689, 1);
c.currentHealth += 16;
c.playerLevel[0] -= 5;
c.playerLevel[1] -= 5;
c.playerLevel[2] -= 5;
c.playerLevel[4] -= 5;
c.playerLevel[6] -= 5;
} else {
c.sM("You Are to weak to do this.");

}				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
					c.currentHealth = c.playerLevel[c.playerHitpoints];
c.sendQuest("" + c.currentHealth + "", 4016);
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.sendQuest("" + c.playerLevel[1] + "", 4008);
c.sendQuest("" + c.playerLevel[4] + "", 4010);
c.sendQuest("" + c.playerLevel[0] + "", 4004);
c.sendQuest("" + c.playerLevel[6] + "", 4014);
break;
			case 6689:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();

c.deleteItem(6689, slot, 1);
c.addItem(6691, 1);
if(c.playerLevel[0] >= 10 && c.playerLevel[1] >= 10 && c.playerLevel[2] >= 10 && c.playerLevel[3] >= 10 && c.playerLevel[4] >= 10 && c.playerLevel[5] >= 10){
c.setAnimation(0x33D);
c.sM("You have 1 dose of potion left.");
c.currentHealth += 16;
c.playerLevel[0] -= 5;
c.playerLevel[1] -= 5;
c.playerLevel[2] -= 5;
c.playerLevel[4] -= 5;
c.playerLevel[6] -= 5;
} else {
c.sM("You Are to weak to do this.");

}
				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
					c.currentHealth = c.playerLevel[c.playerHitpoints];
c.sendQuest("" + c.currentHealth + "", 4016);
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.sendQuest("" + c.playerLevel[1] + "", 4008);
c.sendQuest("" + c.playerLevel[4] + "", 4010);
c.sendQuest("" + c.playerLevel[0] + "", 4004);
c.sendQuest("" + c.playerLevel[6] + "", 4014);
break;
			case 6691:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();

if(c.playerLevel[0] >= 10 && c.playerLevel[1] >= 10 && c.playerLevel[2] >= 10 && c.playerLevel[3] >= 10 && c.playerLevel[4] >= 10 && c.playerLevel[5] >= 10){
c.currentHealth += 16;
c.playerLevel[0] -= 5;
c.playerLevel[1] -= 5;
c.playerLevel[2] -= 5;
c.playerLevel[4] -= 5;
c.playerLevel[6] -= 5;
c.setAnimation(0x33D);
c.sM("You have finished your potion.");
c.deleteItem(6691, slot, 1);
c.addItem(229, 1);
} else {
c.sM("You Are to weak to do this.");

}
				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
					c.currentHealth = c.playerLevel[c.playerHitpoints];
c.sendQuest("" + c.currentHealth + "", 4016);
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.sendQuest("" + c.playerLevel[1] + "", 4008);
c.sendQuest("" + c.playerLevel[4] + "", 4010);
c.sendQuest("" + c.playerLevel[0] + "", 4004);
c.sendQuest("" + c.playerLevel[6] + "", 4014);
break;
			
			case 2434:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of your restore prayer potion.");
				c.sM("You have 3 doses of potion left.");
c.deleteItem(2434, slot, 1);
c.addItem(139, 1);
c.prayerRestore();
c.sendQuest("" + c.playerLevel[5] + "", 4012);
break;
			case 139:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of your restore prayer potion.");
				c.sM("You have 2 doses of potion left.");
c.deleteItem(139, slot, 1);
c.addItem(141, 1);
c.prayerRestore();
c.sendQuest("" + c.playerLevel[5] + "", 4012);
break;
			case 141:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of your restore prayer potion.");
				c.sM("You have 1 dose of potion left.");
c.deleteItem(141, slot, 1);
c.addItem(143, 1);
c.prayerRestore();
c.sendQuest("" + c.playerLevel[5] + "", 4012);
break;
			case 143:
				if (System.currentTimeMillis() -c.potionDelay < 2000)
				return;
				c.foodDelay = System.currentTimeMillis();
				c.potionDelay = System.currentTimeMillis();
				c.setAnimation(0x33D);
				
				c.sM("You drink some of your restore prayer potion.");
				c.sM("You have finished your potion.");
c.deleteItem(143, slot, 1);
c.addItem(229, 1);
c.prayerRestore();
c.sendQuest("" + c.playerLevel[5] + "", 4012);
break;
case 2444: // range (4)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.rangePot = true;
c.rangePotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[4]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
c.playerLevel[4] += c.abc2;
c.sendFrame126(""+c.playerLevel[4]+"", 4006);
c.deleteItem(2444, c.getItemSlot(2444), 1);
c.addItem(169, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[4] + "", 4010);
c.rangePotTimer = 60;
				c.sM("You drink some of your ranging potion.");
				c.sM("You have 3 doses of potion left."); 
break;
case 169: // range (3)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.rangePot = true;
c.rangePotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[4]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
c.playerLevel[4] += c.abc2;
c.sendFrame126(""+c.playerLevel[4]+"", 4006);
c.deleteItem(169, slot, 1);
c.addItem(171, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[4] + "", 4010);
c.rangePotTimer = 60;
				c.sM("You drink some of your ranging potion.");
				c.sM("You have 2 doses of potion left."); 
break;
case 171: // range (2)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.rangePot = true;
c.rangePotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[4]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
c.playerLevel[4] += c.abc2;
c.sendFrame126(""+c.playerLevel[4]+"", 4006);
c.deleteItem(171, slot, 1);
c.addItem(173, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[4] + "", 4010);
c.rangePotTimer = 60;
				c.sM("You drink some of your ranging potion.");
				c.sM("You have 1 dose of potion left."); 
break;
case 173: // range (1)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.rangePot = true;
c.rangePotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[4]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
c.playerLevel[4] += c.abc2;
c.sendFrame126(""+c.playerLevel[4]+"", 4006);
c.deleteItem(173, slot, 1);
c.addItem(229, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[4] + "", 4010);
c.rangePotTimer = 60;
				c.sM("You drink some of your ranging potion.");
				c.sM("You have finished your potion."); 
break;
case 113: // str (4)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.strPot = true;
c.strPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[2]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
c.playerLevel[2] += c.abc2;
c.sendFrame126(""+c.playerLevel[2]+"", 4006);
c.deleteItem(113, slot, 1);
c.addItem(115, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.strPotTimer = 60;
				c.sM("You drink some of your strength potion.");
				c.sM("You have 3 doses of potion left."); 
break;
case 115: // str (3)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.strPot = true;
c.strPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[2]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
c.playerLevel[2] += c.abc2;
c.sendFrame126(""+c.playerLevel[2]+"", 4006);
c.deleteItem(115, slot, 1);
c.addItem(117, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.strPotTimer = 60;
				c.sM("You drink some of your strength potion.");
				c.sM("You have 2 doses of potion left."); 
break;
case 117: // str (2)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.strPot = true;
c.strPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[2]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
c.playerLevel[2] += c.abc2;
c.sendFrame126(""+c.playerLevel[2]+"", 4006);
c.deleteItem(117, slot, 1);
c.addItem(119, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.strPotTimer = 60;
				c.sM("You drink some of your strength potion.");
				c.sM("You have 1 dose of potion left."); 
break;
case 119: // str (1)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.strPot = true;
c.strPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[2]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
c.playerLevel[2] += c.abc2;
c.sendFrame126(""+c.playerLevel[2]+"", 4006);
c.deleteItem(119, slot, 1);
c.addItem(229, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.strPotTimer = 60;
				c.sM("You drink some of your strength potion.");
				c.sM("You have finished your potion."); 
break;
case 2440: // super str (4)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.strPot = true;
c.strPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[2]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
c.playerLevel[2] += c.abc2;
c.sendFrame126(""+c.playerLevel[2]+"", 4006);
c.deleteItem(2440, slot, 1);
c.addItem(157, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.strPotTimer = 60;
				c.sM("You drink some of your strength potion.");
				c.sM("You have 3 doses of potion left."); 
break;
case 157: // super str (3)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.strPot = true;
c.strPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[2]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
c.playerLevel[2] += c.abc2;
c.sendFrame126(""+c.playerLevel[2]+"", 4006);
c.deleteItem(157, slot, 1);
c.addItem(159, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.strPotTimer = 60;
				c.sM("You drink some of your strength potion.");
				c.sM("You have 2 doses of potion left.");
break;
case 159: // super str (2)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.strPot = true;
c.strPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[2]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
c.playerLevel[2] += c.abc2;
c.sendFrame126(""+c.playerLevel[2]+"", 4006);
c.deleteItem(159, slot, 1);
c.addItem(161, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.strPotTimer = 60;
				c.sM("You drink some of your strength potion.");
				c.sM("You have 1 dose of potion left.");
break;
case 161: // super str (1)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.strPot = true;
c.strPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[2]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
c.playerLevel[2] += c.abc2;
c.sendFrame126(""+c.playerLevel[2]+"", 4006);
c.deleteItem(161, slot, 1);
c.addItem(229, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.sendQuest("" + c.playerLevel[2] + "", 4006);
c.strPotTimer = 60;
				c.sM("You drink some of your strength potion.");
				c.sM("You have finished your potion.");
break;
case 2432: // def (4)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.defPot = true;
c.defPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[1]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
c.playerLevel[1] += c.abc2;
c.sendFrame126(""+c.playerLevel[1]+"", 4008);
c.deleteItem(2432, slot, 1);
c.addItem(133, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.defPotTimer = 60;
				c.sM("You drink some of your defence potion.");
				c.sM("You have 3 doses of potion left.");
c.refreshSkills();
break;
case 133: // def (3)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.defPot = true;
c.defPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[1]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
c.playerLevel[1] += c.abc2;
c.sendFrame126(""+c.playerLevel[1]+"", 4008);
c.deleteItem(133, slot, 1);
c.addItem(135, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.defPotTimer = 60;
				c.sM("You drink some of your defence potion.");
				c.sM("You have 2 doses of potion left.");
c.refreshSkills();
break;
case 135: // def (2)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.defPot = true;
c.defPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[1]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
c.playerLevel[1] += c.abc2;
c.sendFrame126(""+c.playerLevel[1]+"", 4008);
c.deleteItem(135, slot, 1);
c.addItem(137, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.defPotTimer = 60;
				c.sM("You drink some of your defence potion.");
				c.sM("You have 1 dose of potion left.");
c.refreshSkills();
break;
case 137: // def (1)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.defPot = true;
c.defPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[1]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
c.playerLevel[1] += c.abc2;
c.sendFrame126(""+c.playerLevel[1]+"", 4008);
c.deleteItem(137, slot, 1);
c.addItem(229, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.defPotTimer = 60;
				c.sM("You drink some of your defence potion.");
				c.sM("You have finished your potion.");
c.refreshSkills();
break;
case 2442: // super def (4)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.defPot = true;
c.defPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[1]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
c.playerLevel[1] += c.abc2;
c.sendFrame126(""+c.playerLevel[1]+"", 4008);
c.deleteItem(2442, slot, 1);
c.addItem(163, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.defPotTimer = 60;
				c.sM("You drink some of your defence potion.");
				c.sM("You have 3 doses of potion left.");
c.refreshSkills();
break;

case 163: // super def (3)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.defPot = true;
c.defPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[1]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
c.playerLevel[1] += c.abc2;
c.sendFrame126(""+c.playerLevel[1]+"", 4008);
c.deleteItem(163, slot, 1);
c.addItem(165, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.defPotTimer = 60;
				c.sM("You drink some of your defence potion.");
				c.sM("You have 2 doses of potion left.");
c.refreshSkills();
break;

case 165: // super def (2)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.defPot = true;
c.defPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[1]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
c.playerLevel[1] += c.abc2;
c.sendFrame126(""+c.playerLevel[1]+"", 4008);
c.deleteItem(165, slot, 1);
c.addItem(167, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.defPotTimer = 60;
				c.sM("You drink some of your defence potion.");												c.sM("You have 1 dose of potion left.");
c.refreshSkills();
break;


case 167: // super def (1)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.defPot = true;
c.defPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[1]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
c.playerLevel[1] += c.abc2;
c.sendFrame126(""+c.playerLevel[1]+"", 4008);
c.deleteItem(167, slot, 1);
c.addItem(229, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.defPotTimer = 60;
				c.sM("You drink some of your defence potion.");
				c.sM("You have finished your potion.");
c.refreshSkills();
break;
case 2428: // atk (4)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.attPot = true;
c.attPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[0]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
c.playerLevel[0] += c.abc2;
c.sendFrame126(""+c.playerLevel[0]+"", 4004);
c.deleteItem(2428, slot, 1);
c.addItem(121, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.attPotTimer = 60;
				c.sM("You drink some of your attack potion.");
				c.sM("You have 3 doses of potion left.");
break;
case 121: // atk (3)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.attPot = true;
c.attPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[0]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
c.playerLevel[0] += c.abc2;
c.sendFrame126(""+c.playerLevel[0]+"", 4004);
c.deleteItem(121, slot, 1);
c.addItem(123, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.attPotTimer = 60;
				c.sM("You drink some of your attack potion.");
				c.sM("You have 2 doses of potion left.");
break;
case 123: // atk (2)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.attPot = true;
c.attPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[0]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
c.playerLevel[0] += c.abc2;
c.sendFrame126(""+c.playerLevel[0]+"", 4004);
c.deleteItem(123, slot, 1);
c.addItem(125, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.attPotTimer = 60;
				c.sM("You drink some of your attack potion.");
				c.sM("You have 1 dose of potion left.");
break;
case 125: // atk (1)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.attPot = true;
c.attPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[0]);
c.cba = c.abc / 15;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
c.playerLevel[0] += c.abc2;
c.sendFrame126(""+c.playerLevel[0]+"", 4004);
c.deleteItem(125, slot, 1);
c.addItem(229, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.attPotTimer = 60;
				c.sM("You drink some of your attack potion.");
				c.sM("You have finished your potion.");
break;
case 2436: // super atk (4)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.attPot = true;
c.attPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[0]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
c.playerLevel[0] += c.abc2;
c.sendFrame126(""+c.playerLevel[0]+"", 4004);
c.deleteItem(2436, slot, 1);
c.addItem(145, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.attPotTimer = 60;
				c.sM("You drink some of your attack potion.");
				c.sM("You have 3 doses of potion left.");
break;

case 145: // super atk (3)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.attPot = true;
c.attPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[0]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
c.playerLevel[0] += c.abc2;
c.sendFrame126(""+c.playerLevel[0]+"", 4004);
c.deleteItem(145, slot, 1);
c.addItem(147, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.attPotTimer = 60;
				c.sM("You drink some of your attack potion.");
				c.sM("You have 2 doses of potion left.");
break;

case 147: // super atk (2)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.attPot = true;
c.attPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[0]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
c.playerLevel[0] += c.abc2;
c.sendFrame126(""+c.playerLevel[0]+"", 4004);
c.deleteItem(147, slot, 1);
c.addItem(149, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.attPotTimer = 60;
				c.sM("You drink some of your attack potion.");
				c.sM("You have 1 dose of potion left.");
break;
case 149: // super atk (1)
if (System.currentTimeMillis() -c.potionDelay < 2000)
return;
c.foodDelay = System.currentTimeMillis();
c.potionDelay = System.currentTimeMillis();
c.attPot = true;
c.attPotTimer = 20;
c.abc = c.getLevelForXP(c.playerXP[0]);
c.cba = c.abc / 10;
c.abc2 = c.cba * 2;
if (c.abc2 <= 1) {
c.abc2 = 2;
}
c.setAnimation(829);
c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
c.playerLevel[0] += c.abc2;
c.sendFrame126(""+c.playerLevel[0]+"", 4004);
c.deleteItem(149, slot, 1);
c.addItem(229, 1);
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.attPotTimer = 60;
				c.sM("You drink some of your attack potion.");
				c.sM("You have finished your potion.");
break;
case 9739: //ovl (4)
c.overloadEffect();
c.deleteItem(9739, slot, 1);
c.addItem(9741, 1);
break;
case 97341: //ovl (3)
c.overloadEffect();
c.deleteItem(9741, slot, 1);
c.addItem(9743, 1);
break;
case 9743: //ovl (2)
c.overloadEffect();
c.deleteItem(9743, slot, 1);
c.addItem(9745, 1);
break;
case 9745: //ovl (1)
c.overloadEffect();
c.deleteItem(9745, slot, 1);
break;
case 952:
if(c.absX >= 2539 && c.absX <= 2551 && c.absY >= 3096 && c.absY <=3108){
c.toX = 2602;
c.toY = 9479;
}

			default:
				used = false;
				break;
			}
		}
	}


}//closes potion handler